# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-niaarm
_pkgorig=niaarm
pkgver=0.2.0
pkgrel=0
pkgdesc="A minimalistic framework for numerical association rule mining"
url="https://github.com/firefly-cpp/NiaARM"
arch="noarch !riscv64" # py3-niapy
license="MIT"
depends="python3 py3-numpy py3-pandas py3-niapy py3-nltk"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools poetry py3-platformdirs py3-threadpoolctl py3-installer"
source="https://github.com/firefly-cpp/NiaARM/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/NiaARM-$pkgver"

build() {
	GIT_DIR="$builddir" poetry build -f wheel
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/niaarm-$pkgver-py3-none-any.whl
}

sha512sums="
d6c7fc1495b970b4d12b18d6a6c64cb3b4b2900f869ff62c13a7dd579fa4fe351093a2ac000379890300a67da8eb8f1b108df70f965ee2f9939116f8b9a5065e  niaarm-0.2.0.tar.gz
"
